package com.canpany.servlet;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.canpany.dao.DoLink;



public class Dozhuce extends HttpServlet{

	@Override
	  protected void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
	  	  response.setContentType("text/html;charset=gbk");
		PrintWriter out=response.getWriter();
		String username=request.getParameter("userName");
		String ps=request.getParameter("password");
		DoLink ldb=new DoLink();
			ldb.dozhuce(username, ps);
			response.sendRedirect("chat/login.jsp");
			
			
	}

	@Override
	 protected void doPost(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		doGet(request, response);
	}
	
}
